<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


if(!empty($_POST['m']) && empty($_GET['c'])){
    $_GET['c'] = $_POST['m'] ;
}
if(!empty($_POST['a']) && empty($_GET['a'])){
    $_GET['a'] = $_POST['a'] ;
}
if(empty($_GET['c']) && !empty($_GET['m']) && !empty($_GET['a']) ){
    $_GET['c'] = $_GET['m'] ;
    $_GET['m'] = 'Home' ;
}
if(empty($_GET['c']) && empty($_GET['m']) && empty($_GET['a']) ){
    if(empty($_POST['c']) && !empty($_POST['m']) && !empty($_POST['a']) ){
        $_POST['c'] = $_POST['m'] ;
        $_POST['m'] = 'Home' ;

    }
}
define("IS_DEBUG",0);
define("SHOW_DEBUG",0);
define("SHOW_LOG",0);
define("SITE_DOMAIN",'http://wap.yzlicai.com');   //站点域名
define("MAX_DYNAMIC_CACHE_SIZE",1000);  //动态缓存最数量
define("DEFAULT_TIMEZONE","Asia/Shanghai");
define("SMS_TIMESPAN",60);  //短信验证码发送的时间间隔
define("SMS_EXPIRESPAN",3000);  //短信验证码失效时间
define("TIME_UTC",time());   //当前UTC时间戳
define("MAX_LOGIN_TIME",1200);  //登录的过期时间
define("SESSION_TIME",3600); //session超时时间
define("AES_DECRYPT_KEY","__FANWEP2P__");//数据库加密
define("ACCOUNT_PAGE_SIZE",10); //一页显示条数
define("SEND_VERIFYSMS_LIMIT",7); //注册短信发送条数限制
// 应用入口文件

define("_EASE_COOKIE",1); //注册短信发送条数限制
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);

define('__TMPL__Common','./Application/Home/View/Common/');
// 定义应用目录
define('APP_PATH','./Application/');

define('DB_PREFIX','fanwe_');
define('APP_ROOT','/');
define('APP_ROOT_PATH',getcwd().'/');
//加载类库
require_once './system/utils/es_session.php';
require_once './system/utils/es_cookie.php';
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';

// 亲^_^ 后面不需要任何代码了 就是如此简单